#if !defined STUSEQLIST_H
#define STUSEQLIST_H
#include "Student.h"
const int initSize_stu = 100;
const int increment_stu =20;
class StuSeqList
{public:
    StuSeqList(int sz=initSize_stu);
    StuSeqList(StuSeqList &L);
    ~StuSeqList();
    void createList( );
    int Size( )const;
    int Length( )const;
	int SearchByNum(string num) const;
    int Search(Student& x)const;
    int Locate(int i)const;
    bool getData(int i, Student& x)const;
    bool setData(int i, Student& x)const;
    bool Insert(int i, Student& x);
	bool Append(Student& x);
    bool Remove(int i, Student& x);
    bool IsEmpty( );
    bool IsFull( );
    void traverseList( );
    StuSeqList operator=(StuSeqList &L);
    void readFromFile(char* FileName);
    void writeToFile(char* FileName);
private:
    Student *data;
    int listSize;
    int length;
    void reSize(int newSize);
};
#endif // STUSEQLIST_H
